package com.yunduansing.core.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.yunduansing.core.dto.MenuDetailDto;
import com.yunduansing.core.model.ButtonModel;
import com.yunduansing.core.model.MenuModel;

public interface MenuDao extends BaseDao<MenuModel> {
	List<MenuModel> getAll();
	MenuDetailDto getModelAndParentById(int id);
	List<Object> getButtonsByMenuId(int menuId);
	int updateButton(ButtonModel model);
	int addButton(ButtonModel model);
	int deleteButtonById(int id);
	List<ButtonModel> getButtonAll();
}
